package unit04.day01;

import java.io.File;

public class FileDemo1 {

	public static void main(String[] args) {
		File file = new File("./demo.txt");
		String name = file.getName();
		System.out.println(name);
		long length = file.length();
		System.out.println(length);
		boolean canRead = file.canRead();
		boolean canWrite = file.canRead();
		boolean canExec = file.canExecute();
		boolean isHidden = file.isHidden();
	}

}
